import pygame


class Student:
    name = ''
    score = []

    def __init__(self, name, score):
        self.name = name
        self.score = score
        print(name, '，成绩', len(score), '项，平均', sum(score)/len(score))

    def add(self, a):
        self.score.append(a)
        print(self.name, '，成绩', len(self.score),
              '项，平均', sum(self.score)/len(self.score))


c = [int(i)for i in input().split()]
a = Student('张三', c)
a.add(80)
